import request from '@/utils/request'
import Cookies from 'js-cookie'

export default {
  list (params) {
    return request({
      url: 'sot-admin-api/sys/dict-type/list',
      method: 'post',
      data: params
    })
  },
  detail (query) {
    return request({
      url: 'sot-admin-api/sys/dict-type/detail',
      method: 'get',
      params: query
    })
  },
  create (data) {
    return request({
      url: 'sot-admin-api/sys/dict-type/create',
      method: 'post',
      data: data
    })
  },
  update (data) {
    return request({
      url: 'sot-admin-api/sys/dict-type/udpate',
      method: 'post',
      data: data
    })
  },
  intiDictCache (data) {
    return request({
      url: 'sot-admin-api/sys/init',
      method: 'post',
      data: data
    })
  }
}
